package com.itheima.HomeWork_day11;

import java.io.FileOutputStream;
import java.io.IOException;

public class CharTest06 {
    public static void main(String[] args) throws IOException {

        //创建流
        FileOutputStream fo = new FileOutputStream("JavaEE_Code\\file.txt");

        //字节流写入多个字节
//        byte[] arr={65,66,67,68};
//        fo.write(arr);

        //对传入的多个字节选择输入
        byte[] arr1={97,98,99,100,101,102,103,104};
        fo.write(arr1,3,4);
        //关闭流
        fo.close();
    }
}
